// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 

package com.yoyo.lib.net.itf;

import com.yoyo.lib.AppException;
import java.net.HttpURLConnection;
import org.apache.http.HttpResponse;

// Referenced classes of package com.stay.lib.net.itf:
//            IProgressListener

public interface ICallback<T>
{

    public abstract void cancel();

    public abstract void checkIsCancelled()
        throws AppException;

    public abstract Object handleConnection(HttpURLConnection httpurlconnection)
        throws AppException;

    public abstract Object handleConnection(HttpURLConnection httpurlconnection, IProgressListener iprogresslistener)
        throws AppException;

    public abstract Object handleResponse(HttpResponse httpresponse)
        throws AppException;

    public abstract Object handleResponse(HttpResponse httpresponse, IProgressListener iprogresslistener)
        throws AppException;

    public abstract void onCallback(Object obj);

    public abstract void onFailure(AppException appexception);
}
